package cn.smvc.sys.dao;

import java.sql.SQLException;
import java.util.List;

import org.springframework.stereotype.Repository;

import cn.smvc.sys.entity.SysLog;

@Repository
public interface SysLogDao {
	
	public List<SysLog> findAll(SysLog log) throws SQLException;
	
	public SysLog findOne(String id) throws SQLException;
	
	public int save(SysLog log) throws SQLException;
	
	public int update(SysLog log) throws SQLException;
	
	public int delete(String id) throws SQLException;
	
	public int count(String where) throws SQLException;
	
	public List<SysLog> findBySql(String sql) throws SQLException;
	
	public List<SysLog> findByWhere(String where) throws SQLException;
	
	public List<SysLog> findPage(String where, int page, int limit, String orderBy) throws SQLException;
	
}
